package com.billdowney.entity.system.notice;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.billdowney.entity.base.BaseEntityIdByUUIDHex;
import com.billdowney.entity.file.FileInfo;

import io.swagger.annotations.ApiModelProperty;

/**
 * 系统邮件附件表
 * 
 * @author 超级小富翁 - BillDowney
 * @date 2019年3月27日 上午10:33:07
 */
@Entity
@Table(name = "system_notice_attachment")
public class SystemNoticeAttachment extends BaseEntityIdByUUIDHex {

	private static final long serialVersionUID = 1L;

	@ManyToOne(targetEntity = SystemNotice.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
	@JoinColumn(name = "systemNotice_id")
	@ApiModelProperty(value = "邮件信息")
	private SystemNotice systemNotice;

	@ManyToOne(targetEntity = FileInfo.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
	@JoinColumn(name = "fileInfo_id")
	@ApiModelProperty(value = "文件信息")
	private FileInfo fileInfo;

	public SystemNotice getSystemNotice() {
		return systemNotice;
	}

	public void setSystemNotice(SystemNotice systemNotice) {
		this.systemNotice = systemNotice;
	}

	public FileInfo getFileInfo() {
		return fileInfo;
	}

	public void setFileInfo(FileInfo fileInfo) {
		this.fileInfo = fileInfo;
	}

}
